package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 报修单
 * </p>
 *
 * @author zyl
 * @since 2019-09-25
 */
public class WechatRepair implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 报修单号
     */
    private String orderNums;
    /**
     * 浆站Id
     */
    private String plasmaStationId;
    @TableField(exist = false)
    private String plasmaStationName;
    /**
     * 机器id
     */
    private String macId;
    @TableField(exist = false)
    private ShMachine shMachine;
    /**
     * 故障现象
     */
    private String problem;
    /**
     * 机器编号或耗材批号
     */
    private String macCode;
    /**
     * 故障类型（1为机器故障2为耗材故障）
     */
    private Integer problemType;
    /**
     * 故障等级
     */
    private Integer problemLevel;
    /**
     * 报修人
     */
    private String creator;
    @TableField(exist = false)
    private WechatUser creatorName;
    /**
     * 报修时间
     */
    private Date createTime;
    /**
     * 处理结果(1自修，2派修,3已处理)
     */
    private Integer dealResult;
    /**
     * 处理反馈
     */
    private String dealRemark;
    /**
     * 处理人
     */
    private String dealer;
    @TableField(exist = false)
    private WechatUser dealerName;
    /**
     * 处理时间
     */
    private Date dealTime;
    /**
     * 派修或者自修执行人
     */
    private String performer;

   //图片信息
    private  String  picture1;
    @TableField(exist = false)
    private  String  picture1Info;
    private  String  picture2;
    @TableField(exist = false)
    private  String  picture2Info;
    private  String  picture3;
    @TableField(exist = false)
    private  String  picture3Info;
    //报单状态(0未处理1已处理)
    private  Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getPicture1() {
        return picture1;
    }

    public void setPicture1(String picture1) {
        this.picture1 = picture1;
    }

    public String getPicture1Info() {
        return picture1Info;
    }

    public void setPicture1Info(String picture1Info) {
        this.picture1Info = picture1Info;
    }

    public String getPicture2() {
        return picture2;
    }

    public void setPicture2(String picture2) {
        this.picture2 = picture2;
    }

    public String getPicture2Info() {
        return picture2Info;
    }

    public void setPicture2Info(String picture2Info) {
        this.picture2Info = picture2Info;
    }

    public String getPicture3() {
        return picture3;
    }

    public void setPicture3(String picture3) {
        this.picture3 = picture3;
    }

    public String getPicture3Info() {
        return picture3Info;
    }

    public void setPicture3Info(String picture3Info) {
        this.picture3Info = picture3Info;
    }

    public String getPerformer() {
        return performer;
    }

    public void setPerformer(String performer) {
        this.performer = performer;
    }

    public String getPlasmaStationName() {
        return plasmaStationName;
    }

    public void setPlasmaStationName(String plasmaStationName) {
        this.plasmaStationName = plasmaStationName;
    }

    public ShMachine getShMachine() {
        return shMachine;
    }

    public void setShMachine(ShMachine shMachine) {
        this.shMachine = shMachine;
    }

    public WechatUser getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(WechatUser creatorName) {
        this.creatorName = creatorName;
    }

    public WechatUser getDealerName() {
        return dealerName;
    }

    public void setDealerName(WechatUser dealerName) {
        this.dealerName = dealerName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNums() {
        return orderNums;
    }

    public void setOrderNums(String orderNums) {
        this.orderNums = orderNums;
    }

    public String getPlasmaStationId() {
        return plasmaStationId;
    }

    public void setPlasmaStationId(String plasmaStationId) {
        this.plasmaStationId = plasmaStationId;
    }

    public String getMacId() {
        return macId;
    }

    public void setMacId(String macId) {
        this.macId = macId;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getMacCode() {
        return macCode;
    }

    public void setMacCode(String macCode) {
        this.macCode = macCode;
    }

    public Integer getProblemType() {
        return problemType;
    }

    public void setProblemType(Integer problemType) {
        this.problemType = problemType;
    }

    public Integer getProblemLevel() {
        return problemLevel;
    }

    public void setProblemLevel(Integer problemLevel) {
        this.problemLevel = problemLevel;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDealResult() {
        return dealResult;
    }

    public void setDealResult(Integer dealResult) {
        this.dealResult = dealResult;
    }

    public String getDealRemark() {
        return dealRemark;
    }

    public void setDealRemark(String dealRemark) {
        this.dealRemark = dealRemark;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getDealTime() {
        return dealTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    @Override
    public String toString() {
        return "WechatRepair{" +
        "id=" + id +
        ", orderNums=" + orderNums +
        ", plasmaStationId=" + plasmaStationId +
        ", macId=" + macId +
        ", problem=" + problem +
        ", macCode=" + macCode +
        ", problemType=" + problemType +
        ", problemLevel=" + problemLevel +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", dealResult=" + dealResult +
        ", dealRemark=" + dealRemark +
        ", dealer=" + dealer +
        ", dealTime=" + dealTime +
        "}";
    }
}
